
<%@taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="sx"uri="/struts-dojo-tags"%>
<html>
<head>
<script >

function getValue(){
    alert("coucou");
}
 

function getSelectValuesAndSubmit(selectElem){
	 var elems=selectElem.options[selectElem.selectedIndex].value;
    window.location ="http://localhost:8080/GsAbsence/showMatieres?choixClass="+elems;
  
}
</script>
<link rel="stylesheet" href="/GsAbsence/css/formcss.css"
type="text/css" media="screen,projection,print"/>
</head>
<body>
<fieldset>
 <s:form action="ListEtd">
 
  <s:select  id="id" label ="choisir la classe" list="nomClasses"   name="choixClass" size="0" onchange="getSelectValuesAndSubmit(this);"></s:select>
  <s:select label ="choisir la matiere" list="nomMatieres" name="choixMatieres"/>
   <s:submit value="Rechercher" />
 </s:form>
 </fieldset>
</body>
</html>